package com.vfa.fishing.common;

public class Constant {

    public static final int NUM_OF_KIND_FISH = 8;
    public static final int NUM_OF_KIND_SHRIMP = 1;

    public static final int NUM_OF_FISH = 8;
    public static final int NUM_OF_SHRIMP = 2;
    public static final int NUM_OF_MOSS = 2;
    public static final int NUM_OF_CRAB = 1;
    public static final int NUM_OF_SHELLS = 1;
    
    public static final int COIN_FISH_1 = 16;
    public static final int COIN_FISH_2 = 16;
    public static final int COIN_FISH_3 = 16;
    public static final int COIN_SHRIMP = 16;
    public static final int COIN_MOSS = 0;
    public static final int COIN_CRAB = 16;
    public static final int COIN_SHELLS = 16;
    
    public static final int CELLS_HORIZONTAL = 16;
    public static final int CELLS_VERTICAL = 12;
    public static final int CELL_WIDTH = 32;
    public static final int CELL_HEIGHT = CELL_WIDTH;
    public static final int DOWN = 7;
    //cac huong di chuyen cua cac doi tuong
    public static final int RIGHT = 0;//
    public static final int LEFT = 1;
    public static final int RIGHT_UP = 2;
    public static final int RIGHT_DOWN = 3;
    public static final int LEFT_UP = 4;
    public static final int LEFT_DOWN = 5;
    public static final int UP = 6;

    public static final int WATERLINE = 175;
    public static final int BACKGROUND = 430;

    //mang ca huong co the co sau khi va cham
    public static final int arrDirect1 [] = {RIGHT_UP,RIGHT_DOWN};
    public static final int arrDirect2 [] = {LEFT_UP,LEFT_DOWN};
    public static final int arrDirect3 [] = {RIGHT,RIGHT_DOWN};
    public static final int arrDirect4 [] = {RIGHT_UP,RIGHT};
    public static final int arrDirect5 [] = {LEFT,LEFT_DOWN};
    public static final int arrDirect6 [] = {LEFT,LEFT_UP};

    //huong xuat hien cua cac doi tuong tren man hinh
    public static final int RIGHTSIDE = 0;
    public static final int LEFTSIDE = 1;

    // cac loai doi tuong
    public static final int FISH = 0;	//cá
    public static final int MOSS = 1;//rong rêu
    public static final int CRAB = 2;//cua
    public static final int ITEM = 3;// vật phẩm
    public static final int SHRIMP = 4;// tôm
    public static final int CUTLE = 5;//mực
    public static final int SHELLS = 6;//oc
    public static final int PERSON = 7;// NGUOI CHOI

    //vi tri doi tuong boat
    public static final int BOATBOUNDY=160;

    //vi tri day cau, moc cau
    public static final float LINEBOUNDX=20;
    public static final float LINEBOUNDY=25;
    public static final float HOOKBOUNDX=7;
    public static final int DISTANCELINE=45; // chinh do dai day cau cach mat nuoc bao nhieu
    public static final int DISTANCEHOOK=-5; // chinh do dai luoi cau voi day cau

    //array cac level
    public static final int LEVEL1 = 40;
    public static final int LEVEL2 = 80;
    public static final int LEVEL3 = 150;
    public static final int LEVEL4 = 300;
    public static final int LEVEL5 = 500;
    public static final int LEVEL6 = 640;
    public static final int LEVEL7 = 880;
    public static final int LEVEL8 = 1000;
    public static final int LEVEL9 = 1250;
    public static final int LEVEL10 = 1500;

    public static final int arrayMoneyInLevels [] = {LEVEL1, LEVEL2, LEVEL3, LEVEL4, LEVEL5, LEVEL6, LEVEL7, LEVEL8, LEVEL9, LEVEL10};
    public static final int arrayTimeInLevels [] = { 2, 3, 3, 4, 4, 5, 5, 6, 6, 6};
    public static final int arrayPrice [] = {10, 20, 30, 35, 40, 45, 50, 55, 60, 65};
    
    //khai bao cac phan tu, mang ve music
    public static final int FIRECHANGE = 1;
    public static final int FISHBG1 = 2;
    public static final int FISHBG2 = 3;
    public static final int LEVELSOUND = 4;
    public static final int MENUBG = 5;
    public static final int PAUSE = 6;
    public static final int TIDEBG1 = 7;
    public static final int TIDEBG2 = 8;
    

    public static boolean checkCollision(int x1, int y1, int x2, int y2,int x3, int y3) {
        if (x2 <= x1 && x1 <= x3 && y2 <= y1 && y1 <= y3) {
            return true;
        }
        else return false;
    }

}
